package com.heima.wemedia.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmChannel;
import com.heima.wemedia.mapper.WmChannelMapper;
import com.heima.wemedia.service.WmchannelService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WmchannelServiceImpl extends ServiceImpl<WmChannelMapper, WmChannel> implements WmchannelService {
    /**
     * 查询所有的频道数据
     *
     * @return
     */
    @Override
    public ResponseResult findAll() {
        List<WmChannel> list = list();
        return ResponseResult.okResult(list);
    }
}
